﻿using System;
using WorkOrder.Business;
using WorkOrder.Model;

namespace WorkOrder.Notice
{
    public partial class ShowNotice : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request.Params["id"]))
            {
                Business_Table_Notice b_t_n = new Business_Table_Notice();
                Model_Table_Notice model;
                model = b_t_n.GetOneNotice(Request.Params["id"]);
                if (model!=null)
                {
                    labTitle.Text = model.Title;
                    labTypeName.Text = "[" + model.TypeName + "]";
                    labAuthor.Text = "[" + model.AuthorName + "]";
                    labCreateTime.Text = "[" + model.CreateDate + "]";
                    lblContent.Text = model.Content;
                }
            }
        }
    }
}